package cn.ticket.service;

import java.util.List;
import java.util.Map;

import cn.ticket.model.Buses;
import cn.ticket.model.Busorder;

public interface BusesService {
	int deleteByPrimaryKey(Integer id);

    int insert(Buses record);

    int insertSelective(Buses record);

    Buses selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Buses record);

    int updateByPrimaryKey(Buses record);
    
    List<Buses> getAll();
    
    List<Buses> getByBusOrderId(int busOrderId);
    
    List<Buses> getByBusorderidAndRouteid(int busOrderId,Byte routeId);
    
    List<Map<String, Object>> getInfo();
    
    List<Map<String, Object>> getInfoByCount(int start,int count);
    
    List<Map<String, Object>> getInfoByBusOrderId(Integer busOrderIds);
    
    int initialInsert0(int busorderId);
    
    int initialInsert1(int busorderId);
    
    List<Map<String, Object>> getNearestBuses0();
    
    List<Map<String, Object>> getNearestBuses1();
    
    int seatOccupationRemove1(int id);
    
    int seatOccupationAdd1(int id);
}
